﻿@model ADShop.Models.Brand

@{
    ViewBag.Title = "Edit";
}

<h2>Edit Brandt</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    @*<fieldset>
        <legend>Brand</legend>

        <div class="editor-label">
           <b> @Html.LabelFor(model => model.IDBrand)</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDBrand)
            @Html.ValidationMessageFor(model => model.IDBrand)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BrandName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BrandName)
            @Html.ValidationMessageFor(model => model.BrandName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BrandDetails)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BrandDetails)
            @Html.ValidationMessageFor(model => model.BrandDetails)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>*@
    <textarea id="ckedit"></textarea>
    <script type="text/javascript">CKEDITOR.replace('ckedit'); </script>    
    <div class="panel-body">
            <table class="table table-hover" id="sample-table-1">
                <thead>
                    <tr>

                        <th>@Html.DisplayNameFor(model => model.IDBrand)</th>
                        <th>@Html.DisplayNameFor(model => model.BrandName)</th>
                        <th>@Html.DisplayNameFor(model => model.BrandDetails)</th>
                        
                        <th>@Html.DisplayNameFor(model => model.Active)</th>

                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <div class="editor-field">
                                @Html.TextBox("tbIDBrand",@Model.IDBrand)
                                @Html.ValidationMessageFor(model => model.IDBrand)
                            </div>
                        </td>

                        <td>
                            <div class="editor-field">
                                @Html.TextBox("tbBrandName", @Model.BrandName)
                                @Html.ValidationMessageFor(model => model.BrandName)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.TextArea("tbArea", @Model.BrandDetails)
                                @Html.ValidationMessageFor(model => model.BrandDetails)
                            </div>
                        </td>
                        
                        <td>
                            <div class="editor-field">
                                @Html.CheckBox("cbActive",@Model.Active)
                                @Html.ValidationMessageFor(model => model.Active)
                            </div>
                        </td>

                    </tr>
                    



                </tbody>


            </table>

        </div>
        <p>
            <input type="submit" value="Save" class="btn btn-green" />
        </p>
}

<div>
   @Html.ActionLink("Quay lại danh sách nhà sản xuất", "Index", new { @class = "label label-default" })
</div>

